﻿<%@ Page Language="C#" MasterPageFile="~/admin/Admin.master" AutoEventWireup="true" CodeFile="HienthiKH.aspx.cs" Inherits="admin_HienthiKH" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form id="form1" runat="server">
    <table style="width:100%;">
        <tr>
            <td>
                <div style="text-align: center">
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                        AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="TenKH" 
                        DataSourceID="SqlDataSource1" Height="262px" Width="478px">
                        <Columns>
                            <asp:BoundField DataField="TenKH" HeaderText="Tên KH" ReadOnly="True" 
                                SortExpression="TenKH" />
                            <asp:BoundField DataField="MatKhau" HeaderText="Mật Khẩu" 
                                SortExpression="MatKhau" />
                            <asp:BoundField DataField="DiaChi" HeaderText="Địa Chỉ" 
                                SortExpression="DiaChi" />
                            <asp:BoundField DataField="DienThoai" HeaderText="Điện Thoại" 
                                SortExpression="DienThoai" />
                            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
                        </Columns>
                    </asp:GridView>
                </div>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:maytinhxachtayConnectionString %>" 
                    SelectCommand="SELECT [Email], [DienThoai], [DiaChi], [MatKhau], [TenKH] FROM [KhachHang]">
                </asp:SqlDataSource>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </form>
</asp:Content>

